package com.launcher.wkang.activity;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;

import com.launcher.wkang.App;
import com.launcher.wkang.R;

public class IntermediaryActivity extends Activity {
    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_intermediary);
        App.getINstance().setsetWaveformMode(2,1);
                String pkg=null;
                String cls =null;
                pkg=getIntent().getStringExtra("pkg");
                cls=getIntent().getStringExtra("cls");
                ComponentName componet = new ComponentName(pkg, cls);
                Intent i = new Intent();
                i.setComponent(componet);
                startActivity(i);

        new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
            @Override
            public void run() {

                App.getINstance().setsetWaveformMode(1,1);
                finish();
            }
        },150);

    }

    @Override
    protected void onResume() {
        super.onResume();

//        finish();



    }
}
